import mongoose from 'mongoose';

const roleSchema = new mongoose.Schema({
    name: {type: String, required: true},
    auth_name: String,
    auth_time: String,
    create_time: {type: String, default: Date.now},
    menus: Array
})

const RoleModel = mongoose.model('roles', roleSchema);

export default RoleModel;
